package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.PyCarFinanceNotifyLogBean;
import com.molichuxing.services.infrastructure.dao.PyCarFinanceNotifyLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.PyCarFinanceNotifyLogCreateDto;
import com.molichuxing.services.infrastructure.service.PyCarFinanceNotifyLogService;
/**
 * 
 * @author liyg
 * 鹏元汽车金融评分服务实现类
 * 2019-09-23
 *
 */
@Service("pyCarFinanceNotifyLogService")
public class PyCarFinanceNotifyLogServiceImpl implements PyCarFinanceNotifyLogService{

	@Autowired
	private PyCarFinanceNotifyLogMapper pyCarFinanceNotifyLogMapper;
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	@Override
	public Integer create(PyCarFinanceNotifyLogCreateDto createDto) {
		PyCarFinanceNotifyLogBean bean=new PyCarFinanceNotifyLogBean();
		BeanUtils.copyProperties(createDto, bean);
		pyCarFinanceNotifyLogMapper.create(bean);
		return bean.getId();
	}
}
